#!/bin/sh
# runSImulation.tcl \
exec tclsh "$0" ${1+"$@"}
lappend auto_path .
package require generators

set runMe [new SimulationRunner]
set scenarioFileName [string trim [lindex $argv 0]]
set traceOutputFileName [string trim [lindex $argv 1]]
set showNam false
set recordBandwidth false

if {$argc > 2} {
	set showNam [string trim [lindex $argv 2]]
	if {$argc > 3} {
		set recordBandwidth [string trim [lindex $argv 3]]
	}
}
$runMe setShowNam $showNam
$runMe setRecordBandwidth $recordBandwidth
$runMe simulate $scenarioFileName $traceOutputFileName

puts "Start running simulation !!!!!!"
[$runMe set ns] run 


